import pymysql

cxk = pymysql.connect(host ='localhost',port = 3306, user='root', password='root', database='322' ,charset='utf8')
taimei = cxk.cursor()
taimei.execute('select version();')
fs = taimei.fetchone()
print(fs)
taimei.close()
cxk.close()